﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Logoned.Master" Inherits="System.Web.Mvc.ViewPage<CourseSystem.Core.Entities.TopicsInfo>" %>

<%@ Import Namespace="Chowpoo.Util" %>
<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<%@ Import Namespace="CourseSystem.Core.Enum" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    主题浏览
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <% 
       var isDigest = ViewData["isDigest"].CheckInt(0);
    %>
    <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <% Html.RenderPartial("TopUc"); %>
        <% Html.RenderPartial("NavUc", 5); %>
        <% Html.RenderPartial("InteractionNavUc", ViewData["type"].CheckInt(0)); %>
    </table>
    <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="200" align="center" valign="top" class="contentBackImg">
                <table width="950" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="28" align="left" background="<%=ResolveUrl("~/Content/images/5_01_1.gif")%>">
                            <table width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="22">
                                    </td>
                                    <td width="677">
                                        <div align="left">
                                            <span class="style10">主题讨论</span>
                                        </div>
                                    </td>
                                    <td width="46">
                                        &nbsp;
                                    </td>
                                    <td width="102">
                                        &nbsp;
                                    </td>
                                    <td width="182">
                                        <% if (UserHelper.LoginUser.UserType == UserTypeEnum.Teacher && !UserHelper.LoginUser.IsExpert)
                                           { %>  <%= Html.ActionButton((Model.IsDigest ? "取消" : "设置") + "精华帖", "TopicsSetDigest", new {Model.Id}) %><% } %><%=Html.ActionButton("回复", "Posts", new { tid = Model.Id, Model.Fid, isDigest })%><a
                                            href="<%=Url.Action("Topics",new{id=Model.Fid,isDigest}) %>" class="style11">返回</a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" valign="top" background="<%=ResolveUrl("~/Content/images/5_02_1.gif")%>">
                            <table width="944" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td valign="top" bgcolor="#FFFFFF" id="listDiv">
                                        <% Html.RenderAction("PostsListUc", new { tid = Model.Id,isDigest }); %>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="13" bgcolor="#FFFFFF">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="3" background="<%=ResolveUrl("~/Content/images/5_04_1.gif")%>">
                        </td>
                    </tr>
                </table>
                <table width="1000" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="10">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
